<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js"> <!--<![endif]-->
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>校园内推</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Free HTML5 Template by FreeHTML5.co"/>
    <meta name="keywords" content="free html5, free template, free bootstrap, html5, css3, mobile first, responsive"/>


    <!-- Facebook and Twitter integration -->
    <meta property="og:title" content=""/>
    <meta property="og:image" content=""/>
    <meta property="og:url" content=""/>
    <meta property="og:site_name" content=""/>
    <meta property="og:description" content=""/>
    <meta name="twitter:title" content=""/>
    <meta name="twitter:image" content=""/>
    <meta name="twitter:url" content=""/>
    <meta name="twitter:card" content=""/>

    <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
    <link rel="shortcut icon" href="favicon.ico">

    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,300' rel='stylesheet' type='text/css'>

    <link rel="stylesheet" href="/push/login/css/bootstrap.min.css">
    <link rel="stylesheet" href="/push/login/css/animate.css">
    <link rel="stylesheet" href="/push/login/css/style.css">


    <!-- Modernizr JS -->
    <script src="/push/login/js/modernizr-2.6.2.min.js"></script>
    <!-- FOR IE9 below -->
    <!--[if lt IE 9]>
    <script src="/push/login/js/respond.min.js"></script>
    <![endif]-->

</head>
<body>

<div class="container">
    <div class="row">

    </div>
    <!--  <div class="copyrights">Collect from <a href="http://www.cssmoban.com/"  title="网站模板">网站模板</a></div>-->
    <div class="row">
        <div class="col-md-4 col-md-offset-4">


            <!-- Start Sign In Form -->
            <form action="../user/login" method="post" class="fh5co-form animate-box" data-animate-effect="fadeIn"
                  id="Myform">
                <h2>登录</h2>
                <div class="form-group">
                    <label for="username" class="sr-only">用户名</label>
                    <input type="text" name="username" class="form-control" id="username" placeholder="请输入用户名"
                           autocomplete="off">
                </div>
                <div class="form-group">
                    <label for="password" class="sr-only">密码</label>
                    <input type="password" name="password" class="form-control" id="password" placeholder="请输入密码"
                           autocomplete="off">
                </div>
                <div class="form-group">
                    <label for="remember"><input type="checkbox" id="remember"> 记住我</label>
                </div>
                <div class="form-group">
                    <p>没有账号? <a href="/user/signUp">注册</a> | <a href="/user/forgotHt">忘记密码?</a></p>
                </div>
                <div style="margin-bottom: 20px;"><font color="#ff7f50">#(msg)</font></div>
                <div class="form-group">
                    <input type="button" value="登录" id="sub_btn" class="btn btn-primary">
                    <span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span>
                    <input type="button" value="取消" id="cancel" class="btn btn-primary">
                </div>
            </form>
            <!-- END Sign In Form -->

        </div>
    </div>
    <div class="row" style="padding-top: 60px; clear: both;">
        <!--<div class="col-md-12 text-center"><p><small>&copy; All Rights Reserved. More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a></small></p></div>-->
        <div class="col-md-12 text-center">
            <p>
                <small>
            <p>Copyright &copy; 2018 校园内推</p></small></p></div>
    </div>
</div>

<!-- jQuery -->
<script src="/push/login/js/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="/push/login/js/bootstrap.min.js"></script>
<!-- Placeholder -->
<script src="/push/login/js/jquery.placeholder.min.js"></script>
<!-- Waypoints -->
<script src="/push/login/js/jquery.waypoints.min.js"></script>
<!-- Main JS -->
<script src="/push/login/js/main.js"></script>

<script>
    $(function () {

        $("#sub_btn").click(function () {
            var username = $("#username").val();
            var password = $("#password").val();
            if (username == null || username == "" || password == null || password == "") {
                alert("用户名密码不能为空");
                return;
            } else {
                $("#Myform").submit();
            }
        })

        $('#cancel').click(function () {
            window.location.href = '/push'
        })
    })
</script>

</body>
</html>

